Skip to main content

Class PortBase<C>

Represents a base class for hardware ports.

Assembly: Meadow.Contracts.dll
View Source
Declaration
public abstract class PortBase<C> : IPort<C>, IDisposable where C : class, IChannelInfo

Derived:
Meadow.Hardware.AnalogPortBase

Implements:
Meadow.Hardware.IPort<C>, System.IDisposable

Properties

Channel

Gets the channel information associated with the port.

View Source
Declaration
public C Channel { get; }

Pin

Gets or sets the pin associated with the port.

View Source
Declaration
public IPin Pin { get; protected set; }

Fields

disposed

Indicates whether the port has been disposed.

View Source
Declaration
protected bool disposed

Methods

Dispose(bool)

Releases the resources used by the port.

View Source
Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeNameDescription
System.BooleandisposingA boolean value indicating whether the port is being disposed.

Dispose()

Releases the resources used by the port.

View Source
Declaration
public void Dispose()

Implements